<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>JsChartViewer.raiseViewPortChangedEvent</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="JsChartViewer.htm">JsChartViewer</a>.<wbr>raiseViewPortChangedEvent</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
raiseViewPortChangedEvent()
</div>
<p class="heading2">Description</p>
<div class="content">
Raises a <a href="JsChartViewer.ViewPortChanged.htm">JsChartViewer.ViewPortChanged</a> event.<br><br>
A ViewPortChanged event is automatically raised if the viewport is changed by mouse actions (see <a href="JsChartViewer.setMouseUsage.htm">JsChartViewer.setMouseUsage</a>). This method allows the event to be raised for other reasons.<br><br>
For example, when a HTML button is pressed, the onclick handler can reset the viewport to some default value, and then use this method to raise the ViewPortChanged event. This allows the button to manipulate the viewport and update the chart.
</div>
<p class="heading2">Arguments</p>
<div class="content">None</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
